<?php /* Smarty version 2.6.18, created on 2016-12-12 14:16:13
         compiled from notice/m.check.update.tpl.php */ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="mstatic/css/bootstrap.min.css"  type="text/css" rel="stylesheet">
<link href="mstatic/css/jquery-ui.css"  type="text/css" rel="stylesheet">
<!--日历-->
<link  href="mstatic/css/jquery-ui-timepicker-addon.css"  rel="stylesheet">
<!--日历-->
<link href="mstatic/css/index.css" type="text/css" rel="stylesheet">
<title>通知--通知发布</title>
</head>
<body>
<!--头部-->
<nav class="navbar navbar-default navbar-fixed-top  top" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header" style=" width:100%;"> <a class="navbar-brand" href="javascript:history.go(-1);"  style=" width:100%;  padding-right:0px;"> <span class="glyphicon glyphicon-arrow-left white"></span>
      <!--    <span class="glyphicon glyphicon-pause white" style="margin-left:2%;"></span>-->
      <span class="white" style="margin-left:10%">审核</span> <span class="glyphicon glyphicon-user white" style="float:right"></span> </a> </div>
  </div>
  <!-- /.container-fluid -->
</nav>
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row row_margin">
    <form name="myform" method="post" action=""  enctype="multipart/form-data">
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">标题：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['notice_data']['notice_title']; ?>
" disabled="disabled">
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">发布部门：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['notice_data']['name']; ?>
" disabled="disabled"> 
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">发布时间：</label>
        <div class="col-sm-10 ">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['notice_data']['start_time']; ?>
" id="datepicker" disabled="disabled"> 
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">文章内容：</label>
        <div class="col-sm-10 ">
          <textarea id="category_content" name="notice_content" rows="16" cols="80" style="width: 100%"><?php echo $this->_tpl_vars['notice_data']['notice_content']; ?>
</textarea>
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">附件：</label>
        <div class="col-sm-10 ">
          <a href="index.php?a=notice.output&notice_file=<?php echo $this->_tpl_vars['notice_data']['notice_file']; ?>
"><?php echo $this->_tpl_vars['notice_data']['notice_file']; ?>
</a>
        </div>
      </div>
     
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">审批结果：</label>
        <div class="col-sm-10 ">
         
            <label class="choice"><input type="radio" name="is_show" value="1" checked>同意</label>
			<label class="choice"><input type="radio" name="is_show" value="2">不同意</label>
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">审批意见：</label>
        <div class="col-sm-10 ">
          <textarea class="form-control" rows="3" name="notice_opinion"><?php echo $this->_tpl_vars['notice_data']['notice_opinion']; ?>
</textarea>
        </div>
      </div>
      <div class="form-group">
        <label for="" class="col-sm-2  control-label">附件：</label>
        <div class="col-sm-10 ">
          <input type="file" name="notice_ffile" multiple="multiple"> 
        </div>
      </div>
       <table class="table table-striped table-bordered">
        <tr>
          <td colspan="2"><h5>阅读记录列表（红色：未阅读用户）</h5></td>
        </tr>
        <tr>
          <th class="text-center">部门</th>
          <th class="text-center">阅读用户</th>
        </tr>
        <tr>
			<td>老师</td>
			<td>
			<?php $_from = $this->_tpl_vars['staff_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
				<?php if ($this->_tpl_vars['value']['is_read'] == 1): ?>
					<span ><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</span>，
				<?php else: ?>
					<span style="color:red;"><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</span>，
				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?>	
			
			</td>
		</tr>
		<tr>
			<td>学生</td>
			<td>
			<?php $_from = $this->_tpl_vars['student_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
				<?php if ($this->_tpl_vars['value']['is_read'] == 1): ?>
					<span ><?php echo $this->_tpl_vars['value']['student_name']; ?>
</span>，
				<?php else: ?>
					<span style="color:red;"><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</span>，
				<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?>	
			
			</td>
		</tr>
      </table>
    
  </div>
  <!--row  end-->
  
  <div class="row row_margin" >
    <button type="submit" class="btn btn-primary btn-lg btn-block btn-primary2">确定</button>
  </div>
</div>
</form>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--编辑器--> 
<script type="text/javascript" src="mstatic/xhe/xheditor-1.2.2.min.js"></script> 
<script type="text/javascript" src="mstatic/xhe/xheditor_lang/zh-cn.js"></script> 
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(XHEDITOR.settings,{shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#category_content').xheditor({modalWidth:700,modalHeight:500,upBtnText:'浏览',upLinkUrl:"!ckfinder/upload.html",upImgUrl:"!ckfinder/upload.html?type=Images",upFlashUrl:"!ckfinder/upload.html?type=Flash",upMediaUrl:"!ckfinder/upload.html"});
}
function submitForm(){$('#myform').submit();}
</script>
</body>
</html>